<?php
/**
 * ============================================================================
 * Copyright (c) 2015-2018 贵州大师兄信息技术有限公司 All rights reserved.
 * siteַ: http://www.dsxcms.com
 * ============================================================================
 * @author:     David Song<songdewei@163.com>
 * @version:    v1.0.0
 * ---------------------------------------------
 * Date: 2018/11/4
 * Time: 1:42 AM
 */

namespace App\WechatMessages\ZPH;


use App\WeChat\Message\TemplateMessage;

class OrderSendMessage extends TemplateMessage
{

    protected $template_id = 'XynSWxW1sT9-9fov60iNq9w_kEH4mnOqZhGH9HyExiA';
    public function __construct()
    {
        $this->setFirst('亲爱的小主,您的订单已经发货啦！');
        $this->setRemark('快递正在玩命配送中，请耐心等待！');
    }

    public function setProductName($value, $color = '#000')
    {
        $this->setDataValue('keyword1', $value, $color);
    }

    public function setExpressName($value, $color = '#000')
    {
        $this->setDataValue('keyword2', $value, $color);
    }

    public function setExpressNo($value, $color = '#000')
    {
        $this->setDataValue('keyword3', $value, $color);
    }

    public function setAddress($value, $color = '#000')
    {
        $this->setDataValue('keyword4', $value, $color);
    }
}
